<?php
ini_set('display_errors', 1);
include 'login.php';
include 'menu.php';
include '../server/include.php';


switch ($_GET['page'])
{
    // редактор карт
    case 'map' : map_editor();
        break;
    // редактор тайлов
    case 'tiles' : tiles_editor();
        break;
     // редактор растений во владении
    case 'plants' : plants_editor();
        break;
    case '10' : stat_10();
        break;
    // ничего
    default:
        break;
}

function stat_10()
{
    include 'stat/10.php';
    $stat = new stat_10();
    print $stat->out();
}

function map_editor()
{
    include 'editor/map.php';
    $map = new editor_map();
    print $map->out();
}

function tiles_editor()
{
    include 'editor/tiles.php';
    $tiles = new editor_tiles();
    print $tiles->out();
}

function plants_editor()
{
    include 'editor/plants.php';
    $plants = new editor_plants();
    print $plants->out();
}
?>
